home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
CEL2SPR.ZIP
/
SPRFMT.NFO
< prev
Wrap
Text File
|
1994-12-29
|
2KB
|
39 lines
Sprite (I usuallly use the extension .spr) File Format
------------------------------------------------------
By Zoombapup // Code-X // Mage
Although we dont actually use this, i needed to code it, to test out some
idea's for my own sprite stuff.. basically it takes an autodesk animator
.cel file (not AAPRO cel files, which are different) and makes a sprite file
format thats suitable for fast sprite routines in Mode-X (unchain modes).
Note: the cel file format only allows sprites of upto 320x200 in size, I also
place the restriction that .cel files must have a width of a multiple
divisible by 4, ie 40,44,16,8 etc.. this is so that I know there are
4 planes worth of data.. in practice this adds little or no time to
youre sprite routines.. be my guest to change the formats etc..
The resulting .spr <my usual ext> file has the following format
1 word - width of sprite
1 word - height of same
Width*Height bytes of sprite image, in the form
W*H/4 bytes for plane 0
W*H/4 bytes for plane 1
W*H/4 bytes for plane 2
W*H/4 bytes for plane 3
Thats about all you should need to get going to create sprites from cel
files for use in mode-x, I assume .cel files are easy enough for you
to use em in mode 13h without any conversion :))
This source code and utility is dedicated to the public domain, do with it
as you will.. <as if that ever stopped anyone> :))
Seeya..
Phil. aka Zoombapup // Code-X // M.a.g.e
28-12-94